package com.bawei.module_mine.model.service

import com.bawei.lib_net.RetrofitFactory
import com.bawei.module_mine.model.api.OrderApi
import com.bawei.module_mine.model.entity.*

class OrderService {
    private val api by lazy { RetrofitFactory.getRetrofitFactory().create(OrderApi::class.java) }

    suspend fun getCouponMaxDis(body: OrderCouponMaxDisRequest) = api.getCouponMaxDis(body)
    suspend fun getOrderCashDetail(body: OrderCashDetailRequest) = api.getOrderCashDetail(body)
    suspend fun getPayCostTrial(body: OrderPayCostTrialRequest) = api.getPayCostTrial(body)
    suspend fun getOrderCouponSelect(body: OrderCouponSelectRequest) = api.getOrderCouponSelect(body)
    suspend fun getShippingCost(body: OrderShippingCostRequestEntity) = api.getShippingCost(body)
} 